﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using Data;

namespace DataAccess
{
    public class Tbl_AdminBus
    {
        LinqUtility<tbl_admin> context = new LinqUtility<tbl_admin>();

        public List<tbl_admin> getListAdmin()
        {
            return context.GetAll();
        }

        public void insertAdmin(tbl_admin ta)
        {
            context.Insert(ta);
        }

        public void updateAdmin(tbl_admin ta)
        {
            context.Update(ta);
        }

        public void delete(tbl_admin ta)
        {
            context.Delete(ta);
        }

    }
    
}
